package test_extend;

public class test {
    public static void main(String[] args) {
        Person s1 = new Student("lixixi", 18);
        Person s2 = new Teacher("lixixi", 20);
        System.out.println(s1);
        System.out.println(s2);
        s1.method();
        s2.method();
    }
}
